package gui;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class VModLista extends JDialog {

	private final JPanel contentPanel = new JPanel();
	private VDatosVideoLista datosVideoLista;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			VModLista dialog = new VModLista();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public VModLista() {
		setBounds(100, 100, 451, 374);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setLayout(new FlowLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		{
			datosVideoLista = new VDatosVideoLista();
			contentPanel.add(datosVideoLista);
		}
		{
			JLabel lblModificarLista = new JLabel("MODIFICAR LISTA");
			lblModificarLista.setFont(new Font("Tahoma", Font.BOLD, 18));
			GridBagConstraints gbc_lblModificarLista = new GridBagConstraints();
			gbc_lblModificarLista.gridwidth = 4;
			gbc_lblModificarLista.insets = new Insets(0, 0, 5, 5);
			gbc_lblModificarLista.gridx = 0;
			gbc_lblModificarLista.gridy = 0;
			datosVideoLista.add(lblModificarLista, gbc_lblModificarLista);
		}
		{
			JPanel buttonPane = new JPanel();
			GridBagConstraints gbc_buttonPane = new GridBagConstraints();
			gbc_buttonPane.anchor = GridBagConstraints.SOUTH;
			gbc_buttonPane.gridwidth = 2;
			gbc_buttonPane.gridx = 2;
			gbc_buttonPane.gridy = 4;
			datosVideoLista.add(buttonPane, gbc_buttonPane);
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			{
				JButton okButton = new JButton("OK");
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
			{
				JButton cancelButton = new JButton("Cancel");
				cancelButton.setActionCommand("Cancel");
				buttonPane.add(cancelButton);
			}
		}
	}

}
